package com.fyzk.activity.chongzhi;

import android.content.Context;
import android.webkit.JavascriptInterface;

public class JavaScriptInterface {

	private Context mContext;
	//这个一定要定义，要不在payresult()方法里没办法启动intent
	RechargeNewActivity activity;

	/** Instantiate the interface and main_tabs_person the context */
	public JavaScriptInterface(Context c) {
		mContext = c;
		activity = (RechargeNewActivity) c;
	}

	/** 与js交互时用到的方法，在js里直接调用的 */
	@JavascriptInterface
	public void payresult() {
		activity.payresult();
	}

}
